home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / Pac Man.swf / scripts / frame_17 / DoAction_6.as < prev    next >
Encoding:
Text File  |  2006-06-13  |  841 b   |  54 lines

  1. dotx = getProperty("/dot", _X);
  2. doty = getProperty("/dot", _Y);
  3. newpills = "off";
  4. if(lives < "7")
  5. {
  6.    if(lives == "5")
  7.    {
  8.       tellTarget("/lvisual")
  9.       {
  10.          gotoAndStop(6);
  11.       }
  12.    }
  13.    else if(lives == "4")
  14.    {
  15.       tellTarget("/lvisual")
  16.       {
  17.          gotoAndStop(5);
  18.       }
  19.    }
  20.    else if(lives == "3")
  21.    {
  22.       tellTarget("/lvisual")
  23.       {
  24.          gotoAndStop(4);
  25.       }
  26.    }
  27.    else if(lives == "2")
  28.    {
  29.       tellTarget("/lvisual")
  30.       {
  31.          gotoAndStop(3);
  32.       }
  33.    }
  34.    else if(lives == "1")
  35.    {
  36.       tellTarget("/lvisual")
  37.       {
  38.          gotoAndStop(2);
  39.       }
  40.    }
  41.    else if(lives == "0")
  42.    {
  43.       tellTarget("/lvisual")
  44.       {
  45.          gotoAndStop(1);
  46.       }
  47.    }
  48.    if("0" >= lives)
  49.    {
  50.       gotoAndPlay(48);
  51.    }
  52. }
  53. play();
  54.